<%--
  Created by IntelliJ IDEA.
  User: v.tsapaev
  Date: 15.03.12
  Time: 17:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>

    <title></title>

</head>
<body>
      login jsp
      <c:if test="${not empty param.error}">
          <div style="color: red;"> Ошибка
              : ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message} </div>
      </c:if>
      <form method="POST" action="j_spring_security_check">
      <table>
          <tr>
              <td align="right">login</td>
              <td><input type="text" name="j_username" /></td>
          </tr>
          <tr>
              <td align="right">pass</td>
              <td><input type="password" name="j_password" /></td>
          </tr>
          <tr>
              <td align="right">запомнить</td>
              <td><input type="checkbox" name="_spring_security_remember_me" /></td>
          </tr>
          <tr>
              <td colspan="2" align="right"><input type="submit" value="Login" />
                  <input type="reset" value="Reset" /></td>
          </tr>
      </table>
      </form>
</body>
</html>